package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论对象 analyse_comments
 * 
 * @author ruoyi
 * @date 2024-09-02
 */
public class AnalyseComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 评论所属的内容 */
    @Excel(name = "评论所属的内容")
    private Long contentId;

    /** 表示发表这条评论的用户 */
    @Excel(name = "表示发表这条评论的用户")
    private Long userId;

    /** 评论的内容 */
    @Excel(name = "评论的内容")
    private String content;

    /** 评论创建的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论创建的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 评论最后一次更新的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论最后一次更新的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 评论是否为顶级评论（布尔值，如TRUE或FALSE） */
    @Excel(name = "评论是否为顶级评论", readConverterExp = "布=尔值，如TRUE或FALSE")
    private Integer isTopLevel;

    /** 父评论的id 如果是顶级评论，则为NULL */
    @Excel(name = "父评论的id 如果是顶级评论，则为NULL")
    private Long parentId;

    /** 评论的层级（整数） */
    @Excel(name = "评论的层级", readConverterExp = "整=数")
    private Long level;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setIsTopLevel(Integer isTopLevel) 
    {
        this.isTopLevel = isTopLevel;
    }

    public Integer getIsTopLevel() 
    {
        return isTopLevel;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contentId", getContentId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("isTopLevel", getIsTopLevel())
            .append("parentId", getParentId())
            .append("level", getLevel())
            .toString();
    }
}
